/*
@Library('global-shared-library@master') _

node {
    stage('example') {
        try {
            checkNode(name: 'git', foo: 'bar')
        } catch (exc) {
            log.warning 'please install nodejs first'
        }
    }
}

*/

def call(Map config) {
  script {
    sh "printenv"
    echo config.name
    echo config.foo
    sh 'node -v'
    sh 'npm -v'
    sh 'yarn -v'
  }
}
